package com.wzw.springboot.principle.expansion.event;

import org.springframework.context.ApplicationEvent;

import java.time.Clock;

/**
 * @author Wangzhiwen
 */
public class PrincipleEvent extends ApplicationEvent {

    private String eventId;

    public PrincipleEvent(Object source, String eventId) {
        super(source);
        this.eventId = eventId;
    }

    public PrincipleEvent(Object source, Clock clock, String eventId) {
        super(source, clock);
        this.eventId = eventId;
    }

    public String getEventId() {
        return eventId;
    }

    public void setEventId(String eventId) {
        this.eventId = eventId;
    }
}
